<template>
    <p class='child-p' @click="childEvent()">子组件</p>

    <slot>222</slot>
    <el-button @click="childEvent()">子组件按钮</el-button>
</template>
<script setup>
    import {
        ref,
        reactive,
        watch,
        nextTick,
        onMounted,
        computed,
        useAttrs,
        inject
    } from 'vue'

 


    const childEvent = () => {
        // emit('someEvent', '子组件点击事件')
     

    }
</script>